package com.neusoft.mapper;

import com.neusoft.entity.MedicalRecord;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author akemihomurasama
 */
@Mapper
public interface MedicalRecordMapper {
    /**
     * 存储患者病历首页信息
     *
     * @param medicalRecord 患者病历首页信息
     */
    void saveRecord(MedicalRecord medicalRecord);

    /**
     * 根据患者病历id查询病历首页信息
     * @param caseNumber 病历id
     * @return 病历首页信息
     */
    MedicalRecord queryRecordByCaseNum(String caseNumber);

    /**
     * 更新病历首页信息
     * @param medicalRecord 信息
     */
    void updateRecord(MedicalRecord medicalRecord);
}
